<div class="sm-pop">
    <div id="dialog_form" class="layui-form">

        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i>登陆名称</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" name="account" lay-verify="required" placeholder="请输入登陆名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"> 用户名称</label>
            <div class="layui-input-block">
                <input type="text" name="userName" placeholder="请输入用户名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"> 手机号</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" name="mobile" lay-verify="phone" placeholder="请输入手机号" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 所属组织</label>
            <div class="layui-input-block">
                <select name="deptId" lay-verify="required" placeholder="请选择所属组织" lay-ignore></select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 密码</label>
            <div class="layui-input-block">
                <input type="password" id="password" name="password" lay-verify="required" autocomplete="off" placeholder="请输入密码" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 确认密码</label>
            <div class="layui-input-block">
                <input type="password" id="repassword" name="rePassword" lay-verify="required" autocomplete="off" placeholder="请确认密码" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"> 邮箱</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" name="email" lay-verify="email" placeholder="请输入邮箱" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 性别</label>
            <div class="layui-input-block">
                <input type="radio" name="sex" value="1" title="男" checked>
                <input type="radio" name="sex" value="2" title="女">
                <input type="radio" name="sex" value="3" title="未知">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 状态</label>
            <div class="layui-input-block">
                <select id="status" name="status" lay-filter="partnerList" lay-verify="required">
                    <option value="0">启用</option>
                    <option value="1">禁用</option>
                    <option value="2">锁定</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="remark" autocomplete="off" maxlength="200" placeholder="请输入内容" class="layui-textarea"></textarea>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['form', "treeselect"], function () {
        layui.treeselect({
            elem: "#dialog_form select[name=deptId]",
            name: ["id", "pId", "name"],
            data: "/sys/dept/tree",//可以是treedata，也可以是 获取treedata的URL地址
            showRadioFilter: function (v) {
                if (v.parentId == "-1") {
                    return false
                }
            }
        });
    });
</script>